package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * <p>
 * Web访问记录表
 * </p>
 *
 * @author wangchang
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "t_web_visit")
@ApiModel(value="WebVisit对象", description="Web访问记录表")
public class WebVisit implements Serializable {

    private static final long serialVersionUID=1L;

    @Id
    @ApiModelProperty(value = "主键")
    private String uid;

    @ApiModelProperty(value = "用户uid")
    private String userUid;

    @ApiModelProperty(value = "访问ip地址")
    private String ip;

    @ApiModelProperty(value = "用户行为")
    private String behavior;

    @ApiModelProperty(value = "模块uid（文章uid，标签uid，分类uid）")
    private String moduleUid;

    @ApiModelProperty(value = "附加数据(比如搜索内容)")
    private String otherData;

    @ApiModelProperty(value = "状态")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "操作系统")
    private String os;

    @ApiModelProperty(value = "浏览器")
    private String browser;

    @ApiModelProperty(value = "ip来源")
    private String ipSource;

    @Transient
    private String content;
}
